package com.mzpai.board.mapper;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.mzpai.board.model.OperateLog;
import com.mzpai.mapper.BaseMapper;

/**
*
* <b>日志记录 | Mapper</b><br>
*
* admin 2021-01-01 14:58:26
* 
*  @version 1.0.0
*
*/
@Repository
public interface OperateLogMapper extends BaseMapper<OperateLog> {

	
	/**
	 * 统计当天，按kindCode分组
	 * @param toDay
	 * @return
	 */
	List<OperateLog> getListByDate(Map<String, Object> map);

	
	/**
	 * 统计hour，按kindCode分组
	 * @param toDay
	 * @return
	 */
	List<OperateLog> getListByHour(Map<String, Object> map);
	
	/**
     * 根据时间范围获取用户第一次访问商家详情数据(kindcode=2)
     * @param map
     * @return
     */
	List<OperateLog> getFirstStoreDetailList(Map<String, Object> map);
	

}